﻿@model YogaStudio.WebUI.Models.RequestWaiver

@{
    ViewBag.Title = "RequestWaiver";
}
<div class="main">
    <div class="content">
        <div class="section group">
            <div class="col span_2_of_3">
                <div class="contact-form">
                    <h3>WaiverRequest</h3>
                    @using (Html.BeginForm())
                    {
                        @Html.AntiForgeryToken()

                        <div class="form-horizontal">
                            @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                            <div class="form-group">
                                <div class="col-md-10"> Faculty: 
                                    <span style="font-weight: bold;">
                                        @Model.WaiverRequest.Faculty.FullName
                                    </span>
                                    @Html.HiddenFor(model => model.WaiverRequest.Faculty.Id)
                                    @Html.HiddenFor(model => model.WaiverRequest.Customer.Id)
                                </div>
                            </div>

                            <div class="form-group">
                                @Html.LabelFor(model => model.WaiverRequest.CourseId, htmlAttributes: new { @class = "control-label col-md-2" })
                                <div class="col-md-10">
                                    @Html.DropDownListFor(model => model.WaiverRequest.CourseId, Model.Courses.Select(c => new SelectListItem { Value = c.Id.ToString(), Text = c.CourseName }).ToList())
                                    @Html.ValidationMessageFor(model => model.WaiverRequest.CourseId, "", new { @class = "text-danger" })
                                </div>
                            </div>

                            <div class="form-group">
                                @Html.LabelFor(model => model.WaiverRequest.Reason, htmlAttributes: new { @class = "control-label col-md-2" })
                                <div class="col-md-10">
                                    @Html.TextAreaFor(model => model.WaiverRequest.Reason, new { htmlAttributes = new { @class = "form-control" } })
                                    @Html.ValidationMessageFor(model => model.WaiverRequest.Reason, "", new { @class = "text-danger" })
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-md-offset-2 col-md-10">
                                    <input type="submit" value="Save" class="btn btn-default" />
                                    @Html.ActionLink("Back to List", "mywaiverrequest", null, new { @class = "btn", @id = "bluebck" })
                                </div>
                            </div>
                        </div>
                    }
                    </div>
                </div>
            </div>
        </div>
    </div>
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }